<template>
<div style="width:50%" class="card">
  <el-form ref="user" :model="data.user" label-width="60px" style="padding: 20px">
    <el-form-item label="原密码" prop="data.password">
      <el-input v-model="data.user.password" placeholder="请输入原密码" show-password></el-input>
    </el-form-item>
  </el-form>
</div>
</template>

<script setup>

import {reactive} from "vue";

const data=reactive({
  user:JSON.parse(localStorage.getItem('xm-user') || '{}')
})
</script>

<style scoped>

</style>